package com.study.bookstore.service;

import com.study.bookstore.domain.ShoppingCart;
import java.util.List;

/**
 * Service Interface for managing ShoppingCart.
 */
public interface ShoppingCartService {

    /**
     * Save a shoppingCart.
     *
     * @param shoppingCart the entity to save
     * @return the persisted entity
     */
    ShoppingCart save(ShoppingCart shoppingCart);

    /**
     * Get all the shoppingCarts.
     *
     * @return the list of entities
     */
    List<ShoppingCart> findAll();

    List<ShoppingCart> findByLogin(Integer userId);

    /**
     * Get the "id" shoppingCart.
     *
     * @param id the id of the entity
     * @return the entity
     */
    ShoppingCart findOne(Long id);

    /**
     * Delete the "id" shoppingCart.
     *
     * @param id the id of the entity
     */
    void delete(Long id);

    void deleteByUser(Integer userid);


}
